import request from '@/utils/request'

export function loginUser(data) {
  return request.post('/index/login', data)
}

export function getInfo() {
  return request.post('/index/profile')
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
